/* 
 * File:   PF_UTIL.h
 * Author: fire
 *
 * Created on November 13, 2009, 6:40 AM
 */
#include "simparameters.h"
#ifndef _PF_UTIL_H
#define	_PF_UTIL_H
typedef enum {NaN, PlusInfinite, MinusInfinite, isZERO, DENORMAL} FPStatus;
typedef struct floatingPoint  {
  char sign;
  char Exponent[EXPONENT_WIDTH+1]; //one extra char for \0
  char Fraction[FRACTION_WIDTH+1];
  int Exponent_INT;
  int Fraction_INT;
  FPStatus Status;
} FPOINT, *FPOINT_PTR;

extern FPOINT_PTR CreateFP(char MyFP_Str[]);
extern void *FPmalloc(unsigned);
int binary2INT(char InChar[], int BitWidth);
char *INT2binary(int InInT, int BitWidth);



#ifdef	__cplusplus
extern "C" {
#endif




#ifdef	__cplusplus
}
#endif

#endif	/* _PF_UTIL_H */

